package com.sunchen.asc.service.item.vo;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.*;
import java.io.Serializable;

@Data
@ApiModel(value="主题对象",description="主题title")
public class TitleVo implements Serializable {

    private Long id;

    @ApiModelProperty(value="名称",name="name")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value="标志",name="icon")
    @NotEmpty(message = "标志不能为空")
    private String icon;

    @ApiModelProperty(value="权力类型",name="type")
    private String type;

    @ApiModelProperty(value="机构编码",name="orgCode")
    private String orgCode;

    @ApiModelProperty(value="区划编码",name="regionCode")
    private String regionCode;

    @ApiModelProperty(value="区划名称",name="regionName")
    private String regionName;

    @ApiModelProperty(value="父级id，默认填0",name="parentId")
    @NotNull
    private Long parentId;

    @ApiModelProperty(value="备注",name="remark")
    private String remark;

    @ApiModelProperty(value="主题分类",name="classType")
    private String classType;

    @ApiModelProperty(value="主题类型（1：个人，2：法人）",name="titleType")
    @NotNull
    private String titleType;

    @ApiModelProperty(value="主是否常用（1：是，2：否）",name="common")
    @NotNull
    private int common;

    public TitleVo(){}

    public TitleVo(Long id, String name, String icon, String type, String orgCode, String regionCode, String regionName, Long parentId, String remark, String classType, String titleType, int common) {
        this.id = id;
        this.name = name;
        this.icon = icon;
        this.type = type;
        this.orgCode = orgCode;
        this.regionCode = regionCode;
        this.regionName = regionName;
        this.parentId = parentId;
        this.remark = remark;
        this.classType = classType;
        this.titleType = titleType;
        this.common = common;
    }
}
